<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>YD-SCM进销存管理系统:<%= controller.controller_name %></title>
	<%= stylesheet_link_tag "framework.css" %>
	<%= stylesheet_link_tag "scaffold.css" %>
	<script>
	function changeStyle(newObj) {
		//alert('1');
		var obj;
		if(obj==null) {
			//alert('2');
	    	obj=newObj;
	        obj.className='selected';
	    }else {
	        if(obj!=newObj) {
	        	//alert('3');
	        	obj.className='';
	        	obj=newObj;
	        	obj.className='selected';
	        }
	    }
	}
	</script>
</HEAD>

<BODY>
	<div id="container">
        <%= javascript_include_tag "prototype" %>
        <%= javascript_include_tag "calendar" %>
        <%= javascript_include_tag "util" %>
		<div id="header">
			<div id="logo"><img src="/images/logo1.gif" /></div>
			<div id="navigation">
				<div id="bar">
					<div>
						<ul id="contenttypes">
							<li onclick="changeStyle(this)"><a href="javascript:location.replace('/welcome')">系统首页</a></li>
							<li onclick="changeStyle(this)"><a href="javascript:location.replace('/adminorg')">权限管理</a></li>
							<li onclick="changeStyle(this)"><a href="javascript:location.replace('/product')">产品管理</a></li>
							<li onclick="changeStyle(this)"><a href="javascript:location.replace('/store')">仓库管理</a></li>
							<li onclick="changeStyle(this)"><a href="javascript:location.replace('/other_org')">客户管理</a></li>
							<li onclick="changeStyle(this)"><a href="javascript:location.replace('/sale')">销售管理</a></li>
							<li onclick="changeStyle(this)"><a href="javascript:location.replace('/query')">报表中心</a></li>
                                                        <!--	<li onclick="changeStyle(this)"><a href="javascript:location.replace('/print')">打印</a></li>-->
							<li onclick="changeStyle(this)"><a href="javascript:location.replace('/sysadmin')">系统管理</a></li>
							<li onclick="changeStyle(this)"><a href="javascript:location.replace('/adminorg/edit_employee?type=self&id=<%=@session[:account].employee.id%>')">个人信息管理</a></li>
                                                        <li onclick="changeStyle(this)"><a href="javascript:if (confirm('是否退出本系统？')) { location.replace('/permission/logout') }">退出</a></li>


						</ul>
					</div>
				</div>
			</div>
		</div>
		<div id="content">
			<div id="main"><%= @content_for_layout %></div>
			<div id="menu"><%= render_partial "menu" %></div>
		</div>
		<div id="footer">
			<ul>
				<li>建议使用：1024*768分辨率，16位以上颜色、IE5.0以上版本浏览器和中文大字符集 </li>
			</ul>
                        <ul>
				<li>huangyongde@gmail.com</li>
			</ul>
		</div>
	</div>
</div>
</BODY>
</HTML>
